import java.lang.Math;
import java.util.*;
public class Main {
	public static void main(String[] args) {
		String s="";
		int x,i;
		for(i=1;i<=20;i++)
		{
			x=10+(int)(Math.random()*100);
			if(x<=90&&x>=10&&(s.indexOf(""+x)==-1))
				if(i<20)
					s=s+x+",";
				else
					s=s+x;
			else
					i--;
		}	
		System.out.println(s);
		String string[];
		string=s.split(",");
		int number[]=new int[20];
		for(i=0;i<20;i++)
		{
			number[i]=Integer.parseInt(string[i]);
		}
		Arrays.sort(number);
		for(i=0;i<20;i++)
			if(i<19)
				System.out.print(number[i]+",");
			else
				System.out.print(number[i]);
	}
}